package cn.org.mrliu.ssm.common.web.vo;

import java.io.Serializable;

import cn.org.mrliu.ssm.constant.Global;

/**
 * 查询参数
 * @author MrLiu
 *
 */
public class QueryParam implements Serializable{
	private static final long serialVersionUID = 7840307018208107851L;
	private Integer pageIndex = Global.DEFAULT_PAGE_INDEX;
	private Integer pageSize = Global.DEFAULT_PAGE_SIZE;
	private String keyword;
	private String orderColumn;
	private String orderBy;
	public Integer getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(Integer pageIndex) {
		if (pageIndex==null) {
			this.pageIndex = Global.DEFAULT_PAGE_INDEX;
		}else{
			this.pageIndex = pageIndex;
		}
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		if (pageSize==null) {
			this.pageSize = Global.DEFAULT_PAGE_SIZE;
		}else{
			this.pageSize = pageSize;
		}
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public String getOrderColumn() {
		return orderColumn;
	}
	public void setOrderColumn(String orderColumn) {
		this.orderColumn = orderColumn;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	@Override
	public String toString() {
		return "QueryParam [pageIndex=" + pageIndex + ", pageSize=" + pageSize + ", keyword=" + keyword
				+ ", orderColumn=" + orderColumn + ", orderBy=" + orderBy + "]";
	}
}
